from flask import Flask, request, jsonify, send_file
from api.predict import predict_bp
from api.track import track_bp
import os
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
# 注册蓝图
app.register_blueprint(predict_bp, url_prefix="/api")
app.register_blueprint(track_bp, url_prefix="/api")



if __name__ == '__main__':

    os.makedirs("static/uploads", exist_ok=True)
    os.makedirs("static/outputs", exist_ok=True)
    app.run(debug=True,port=4600)
